Skip to content

feat(formula): rmbUpper(amount) writes an amount in Chinese capital numerals (人民币大写) for printed quotes and invoices - #34433

Merged
os-zhuang merged 3 commits into
mainfrom
claude/project-thread-dy398l
Nov 16, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/project-thread-dy398l

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #34332

Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: updated here — skills/objectstack-formula/SKILL.md lists rmbUpper(x) in the stdlib Numbers table (pinned by skill-catalog-sync.test.ts), and content/docs/data-modeling/formulas.mdx adds the catalog row and an "Amount in Chinese capitals" cookbook entry.

维护者速读

  • 改了什么:公式标准库新增 rmbUpper(金额),把金额写成人民币大写,如 245000 → 贰拾肆万伍仟元整、10500.5 → 壹万零伍佰元伍角;报价单、合同、发票的打印页用一个公式字段就能显示「大写金额」。
  • 为什么改:中文商务单据都要在数字下面再印一行大写金额,平台原来没有这个函数,应用自己用 CEL 写既长又容易在「零」、万/亿、角分规则上出错;本卡由你升为 p1(记录 6918041400)。
  • 风险与回滚:只新增一个函数,已有公式的取值都不变;回滚即撤掉本 PR。金额按精确小数四舍五入到分(1.005 → 壹元零壹分),空值显示空,非数字或 10^16 元以上报运行时错误,不会印出错的金额。
  • 先看:packages/formula/src/rmb-upper.ts(零与万/亿规则、取整)→ packages/formula/src/stdlib-rmb-upper.test.ts(期望值表)→ skills/objectstack-formula/SKILL.md(新增一行,删掉一句面向平台开发者的旧建议来付 token 预算)。
  • 两分钟验证:pnpm --filter @objectstack/formula exec vitest run src/stdlib-rmb-upper.test.ts,预期全部通过,表中可见 245000 → 贰拾肆万伍仟元整。
  • 需要你做的:本 PR 碰受管面 skills/**,契约审核(contract review owed)PASS 后由席位请你批准,在此之前无需动作。

What changes

  • rmbUpper(dyn): string (packages/formula/src/rmb-upper.ts, registered in registerBoundStdLib beside the other number helpers). An amount as Chinese capital numerals:
    • digits 零壹贰叁肆伍陆柒捌玖, places 拾佰仟, groups 万 and 亿; a ten is 壹拾;
    • one 零 per run of zeros inside the number, none at the end of a group or of the yuan part (1005 → 壹仟零伍元整, 10500 → 壹万零伍佰元整, 100000001 → 壹亿零壹元整, 1000000 → 壹佰万元整); a full low group takes no 零 (107000 → 壹拾万柒仟元整);
    • above 亿 the count of 亿 is written with 万 (10000100000000 → 壹拾万零壹亿元整); 10^16 yuan and above is refused rather than written as 亿亿;
    • a whole amount ends in 整; 角 with no 分 ends at the 角 (伍角, as on the card); 分 with no 角 writes 零 for the 角 (壹元零伍分); under one yuan is 角 and 分 alone (0.5 → 伍角);
    • 0 → 零元整, a negative is prefixed 负 (one that rounds to zero is 零元整), null → ''.
  • Rounding reads the value's own spelling and rounds with the home-amount arithmetic's divideToPlaces (ADR-0144 D5): the exact decimal the value spells, rounded once to 分, half away from zero. A number, a bigint (an int literal) and decimal text (a currency column answered as "245000.00") are read; text that spells no decimal, a boolean, a list or a map throws, which the engine reports as a runtime error.
  • Catalog: CEL_STDLIB_FUNCTIONS advertises rmbUpper; its docblock tallies move 77 to 78 registered, 42 to 43 bare-callable, 30 to 31 added by registerStdLib. cel-engine.test.ts's every-advertised-entry probe gains rmbUpper(10500.5).
  • Docs: the formula skill's Numbers table, formulas.mdx's stdlib table and a cookbook entry.
  • Platform checklist: api-backend.formula-stdlib-matrix revision 8 counts 31 functions and adds the rmbUpper known answers.

Why

Chinese quotes, contracts, order confirmations and invoices print the total in capital numerals beside the figures, and the stdlib had no function for it. Hand-writing the zero, 万/亿 and 角/分 rules in CEL is long and easy to get wrong, and every app printing a Chinese document would copy it. Grade: maintainer ruling 6918041400 (「按价值挑五张升 p1」). It pairs with #34228 (Chinese print layout, PR #34422), which it does not touch.

Tests

  • packages/formula/src/stdlib-rmb-upper.test.ts, every row evaluated through celEngine.evaluate the way a formula field reads it: the card's amounts; places, groups and 零 (28 rows up to 9999999999999999); 角/分/整 (10 rows); rounding on the exact decimal (1.005, 2.675, 9.995, -1.005); negatives; int and double literals, decimal text, record arithmetic (3 × 0.1 rounds to 叁角), null; refusals (text, ¥100, a boolean, a list, 10^16 with a control one 分 below); authoring (validateExpression('value', 'rmbUpper(record.total)') with a currency field has no error or warning, and inferExpressionType answers text).
  • Drift pins: cel-stdlib-drift.test.ts (catalog equals the bare-callable registrations), skill-catalog-sync.test.ts (the skill documents every entry), cel-engine.test.ts (every entry resolves).
Test readings at head 4fffca7
pnpm --filter @objectstack/formula test && pnpm --filter @objectstack/formula typecheck   (under os-verify-lock)
 Test Files  68 passed (68)
      Tests  1822 passed (1822)
os-verify-lock: VERDICT command-exit 0

Ablation (one, source-resolved: the test imports ./cel-engine relatively, so no dist is involved), through scripts/ablation-replace.mjs: the anchor return head + (low < 1_000n ? '零' : '') + group(Number(low)); replaced by return head + group(Number(low)); (anchor 1 to 0, blob 22257fca to 93e3b5cf). stdlib-rmb-upper.test.ts went red on 10 tests, among them 10500.5 → 壹万零伍佰元伍角, 10001 → 壹万零壹元整, 1000100 → 壹佰万零壹佰元整 and 10000100000000 → 壹拾万零壹亿元整. Restored: the file's blob is 22257fca, equal to HEAD:packages/formula/src/rmb-upper.ts, and git diff HEAD is empty.

Acceptance notes

  • Name. rmbUpper is the card's own suggestion and reads beside upper(); nothing in the stdlib, spec or ui names a Chinese-numeral function today. A reviewer who prefers another name can veto it here: it is one registration, one catalog entry and the docs rows.
  • The optional 零. The rules allow writing or omitting a 零 where the 元 or 万 place is zero but the next lower place is not (1680.32 → 壹仟陆佰捌拾元叁角贰分 or …元零叁角贰分; 107000 → 壹拾万柒仟 or 壹拾万零柒仟). This writes the form without it. The 零 the rules require (a group starting with zeros after a higher group, 壹万零伍佰, and an empty 角 before a 分, 壹元零伍分) is written.
  • null reads '', as trim(null) and label() of an empty field do, so an empty total prints an empty line rather than failing the formula.
  • Skill token budget. skills/objectstack-formula/SKILL.md had 7 tokens of headroom. The new row is paid by deleting the sentence "If you need a helper that doesn't exist, prefer adding it to the stdlib (small, pure, dependency-free) over inlining a complex CEL expression." The skill ships to app authors whose @objectstack/formula is dist-only (the same section says "there is no src/ to read"), so that advice addresses platform contributors; formulas.mdx keeps its "Add new helpers in packages/formula/src/stdlib.ts" note for them. Readings: the file 494 to 492 lines, 5990 to 5988 tokens (ceiling 5997); the bundle's SKILL.md files 4594 to 4592 lines.
  • Not measured: no live REST read of a formula field calling rmbUpper (the checklist item's live leg); every row runs through the same celEngine.evaluate the read path calls.

Verification

Local gates at head 4fffca7 (base 9e6fee1)
  • Build closure: pnpm --filter '@objectstack/formula^...' build, then turbo run build --filter=@objectstack/lint... --filter=@objectstack/client-react... (exit 0) for the gates that read dist.
  • node scripts/pm/dispatch-gates.mjs --commands derived 107 families; all 107 ran (--ran reconciliation: 107 derived, 107 run, 0 unrun). 104 exited 0.
  • node scripts/check-plugin-teardown-shape.mjs --self-test exited 3 on the shallow clone (its pinned fixture commit was absent); after git fetch --depth=1 origin 621a487607881c66b2899b7e3477115229a156b4 it exits 0 (48 cases pass).
  • pnpm check:dual-build-cjs-loads: NOT MEASURED, reason: exit 3 PREREQUISITE NOT MET, it reads every package's dist and only the lint and client-react closures were built. CI's run is the reading.
  • pnpm check:platform-checklist exits 1 on one problem that is not this diff's: approvals.json · approvals.approver-resolution-matrix: VARIANTS STALE — ApproverType … now has 11 members but this item's variants were authored against 10. It exits 1 with the same problem on origin/main 9e6fee1 itself (the shared checkout, untouched by this branch); ApproverType last changed in 27c0b20 (feat(approvals): platform_admin approver type for a deployment's own packaged flows #34300). This diff edits only the formula stdlib item, which the gate does not flag. Reported to the seat; not fixed here (out of scope).
  • node scripts/check-platform-checklist.mjs --changed-from origin/main: OK, 2 anchored files, 0 lost.
  • node scripts/check-skills-token-ratchet.mjs: exit 0, skills/objectstack-formula/SKILL.md 5988 / 5997.
  • Not run locally (CI's): test:repo, repo-wide pnpm lint. No dogfood battery is owed (no ! in the title, no narrowing arm).

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (no packages/spec change)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (repo-wide lint is CI's run)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (not touched)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.
  • The Before Submitting list in CONTRIBUTING.md is done.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FEkQ5nHvfaZE5NLUTcWkFZ


Generated by Claude Code

…umerals

A Chinese quote, contract or invoice prints its total a second time in
capital numerals (人民币大写) under the figures. The new CEL stdlib function
rmbUpper(dyn): string writes that line: rmbUpper(245000) is 贰拾肆万伍仟元整,
rmbUpper(10500.5) is 壹万零伍佰元伍角.

The amount is read as the exact decimal it spells and rounded once to fen,
half away from zero, with the home-amount arithmetic (toScaledDecimal,
divideToPlaces). Zero runs, the wan and yi groups, jiao, fen and zheng follow
the usual rules; 0 is 零元整, a negative is prefixed 负, null reads ''. Text
that spells no number, a boolean, a list, and 10^16 yuan or more are refused
with a runtime error.

The function is advertised in CEL_STDLIB_FUNCTIONS, documented in the
objectstack-formula skill and formulas.mdx, and counted in the platform
checklist's stdlib matrix item.

Claude-Session: https://claude.ai/code/session_01FEkQ5nHvfaZE5NLUTcWkFZ
Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5nHvfaZE5NLUTcWkFZ

Final head for review: 4fffca7e · 2026-11-16T17:17Z

  • @objectstack/formula test + typecheck under the verify lock: 68 files, 1822 tests passed, exit 0.
  • Derived gates: 107 derived, 107 run; 104 exit 0, the teardown self-test green after deepening for its pinned fixture, check:dual-build-cjs-loads NOT MEASURED (needs every package's dist; CI's run is the reading).
  • check:platform-checklist is red on origin/main 9e6fee1 itself, on approvals.approver-resolution-matrix (ApproverType now has 11 members, the item's variants 10; last changed in 27c0b20). This branch does not touch that item, so Lint & Repo Gates will read red here until main is fixed. Reported to the seat.
  • Card report: the os-dev-report comment on formula: add a Chinese capital-amount function (金额大写, e.g. 壹万零伍佰元整) for printed quotes, contracts and invoices #34332.

Contract review owed (Clause-② yes (widening), Metadata-protocol added, skills/** governed path). The seat routes L1 and L2.

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 16, 2026
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/formula, touching 14 documentable anchor(s).

1 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/data-modeling/formulas.mdx (via rmbUpper (symbol, a top-level function), rmbUpper (literal, a string literal in CEL_STDLIB_FUNCTIONS))
What this run could not see
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 12 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json a121e29c280aefb60fdbd48f3f765c5dc8902884 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 6772e52025a53c474108847849e513c1694a8d91 — the merge of head 92e409e84a9ea966cc5bfc593c1b36f9babf86bc into base a121e29c280aefb60fdbd48f3f765c5dc8902884, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 6772e52025a53c474108847849e513c1694a8d91 && git checkout 6772e52025a53c474108847849e513c1694a8d91
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin a121e29c280aefb60fdbd48f3f765c5dc8902884 92e409e84a9ea966cc5bfc593c1b36f9babf86bc && git checkout -B drift-repro a121e29c280aefb60fdbd48f3f765c5dc8902884 && git merge --no-ff 92e409e84a9ea966cc5bfc593c1b36f9babf86bc

node scripts/docs-audit/affected-docs.mjs --json a121e29c280aefb60fdbd48f3f765c5dc8902884

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs a121e29c280aefb60fdbd48f3f765c5dc8902884 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5mww9UksbwbjvM4aYn

席位核对 · PR #34433 · L1-b · 2026-11-16T17:21Z

Head-sha: 4fffca7e3ed5e8f6f79839bdc644be0ac3c1571a

L1 · ACCEPT(内容面;本 head 的门禁尚在运行,未读到结果) · 定稿评论 6923627496 所钉 head,dev 报告 6923650437。merge-base 9e6fee19,1 个提交,9 个文件。

  • PR 形态:单卡 formula: add a Chinese capital-amount function (金额大写, e.g. 壹万零伍佰元整) for printed quotes, contracts and invoices #34332。Clause-② yes(widening):只新增一个函数,原来能用的都不受影响。Metadata-protocol: added。标题不带 !,没有 narrowing arm,不欠 battery。
  • 代码:rmb-upper.ts 的规则按卡面例子逐条手算过:245000 → 贰拾肆万伍仟元整,10500.5 → 壹万零伍佰元伍角,100000001 → 壹亿零壹元整,1000000 → 壹佰万元整,10_0001_0000_0000 → 壹拾万零壹亿;另外核了 100050000 → 壹亿零伍万、110000000 → 壹亿壹仟万。取整用 toScaledDecimal / divideToPlaces,与 home-amount 的读法相同。负数四舍五入后为 0 时写零元整。上限 10^16 用 LIMIT_FEN = 10^18 分来判断。
  • 接线与计数:registerFunction('rmbUpper(dyn): string');CEL_STDLIB_FUNCTIONS 加了一个名字;validate.ts docblock 的计数改为 78 / 43 / 31,39 个名字的差额不变。cel-engine.test.ts 的覆盖表加了一行。api-backend.formula-stdlib-matrix 中 30 → 31 的各处计数、步骤、acceptance 和 source 一致更新,revision 7 → 8。
  • changeset 与 docs 逐句核对:例子、1.005 → 壹元零壹分、零的规则、整、零元整、负、null → ''、能读的输入与拒收的输入,都与代码和 pin 一致。formulas.mdx 的目录行与 cookbook 表也与 pin 一致。
  • SKILL.md 删去一句:正文写明这是为了付 token 预算(5990 → 5988 / 5997),并说明删掉的那句是给平台开发者的建议,formulas.mdx 仍保留同义的一句。增长有交代。
  • 拒收:这是函数级的运行时错误,不是 HTTP 门,没有 code/status 可以断言。pin 断言了 ok === false 与错误文本,上限一条还带了差一分的 CONTROL。
  • 非阻塞:formulas.mdx cookbook 末句写「is a runtime error rather than some text」。在 formula 字段里,运行时错误按同页第 246 行的规则读作 null。可以加半句「in a formula field it reads null」,改不改由区线程定。
  • 门禁 NOT MEASURED:本核对时,本 head 共 64 条 check-runs,15 条 success、10 条 skipped,39 条仍在运行(Test Core、Test UI、Lint 与 Type Check 各分片、Build Docs)。入队前由区线程在本 head 上确认全 check 绿;席位已说明 Lint & Repo Gates 的 check:platform-checklist 红源自 main(approver-resolution-matrix),不计入本 PR,其余各条须绿。读数不对应本 head 的,不算数。

落地条款:本 PR 触及受管路径 skills/objectstack-formula/SKILL.md,且 Clause-② 为 yes,按席位的受管落地路线走;须同时具备本 ACCEPT、review#2 的契约复审 PASS,以及本 head 除上述 main 红以外全 check 绿。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR

Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head 4fffca7 · 2026-11-16T17:22Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 4fffca7e3ed5e8f6f79839bdc644be0ac3c1571a
Local-runs: probe — the PR head's rmb-upper.ts and home-amount-arithmetic.ts were copied by git show into the scratch dir and called from a standalone node script over 60 inputs, to judge the numeral rules and the input bounds by evaluation; no checkout, build, gate or repo test was run
Scope: skills/objectstack-formula/SKILL.md + packages/formula/src/rmb-upper.ts, packages/formula/src/stdlib.ts, packages/formula/src/validate.ts, packages/formula/src/stdlib-rmb-upper.test.ts, packages/formula/src/cel-engine.test.ts, docs/qa/platform-checklist/areas/api-backend.json
Security-touching: no

① Derived judgments

  • Accept-set: one new bare-callable CEL name, rmbUpper(dyn): string. An expression calling it was an unknown-function refusal before; no existing expression changes verdict or value. Right.
  • Registration and catalog agree: registerBoundStdLib registers the signature the changeset declares, CEL_STDLIB_FUNCTIONS gains the one name, and the docblock arithmetic holds (78 = 43 + 35; 43 = 31 + 8 + 4; 39 advertised, gap still 39). Right.
  • rmb-upper.ts is not re-exported from index.ts; the published surface is the CEL function alone. home-amount-arithmetic.ts is unchanged against main. Right.
  • Numeral rules, evaluated at this head: 0 零元整; 10 壹拾元整; 10010 壹万零壹拾元整; 100100 壹拾万零壹佰元整; 1010000 壹佰零壹万元整; 100000001 壹亿零壹元整; 1000001000 壹拾亿零壹仟元整; 10^12 壹万亿元整; 10^12 + 0.01 壹万亿元零壹分; 1000.05 壹仟元零伍分; 10.50 壹拾元伍角; 0.05 伍分; 60000.06 陆万元零陆分. One 零 per zero run, none trailing, none doubled across 万 and 亿. The omitted optional 零 (107000 壹拾万柒仟, 20001000 贰仟万壹仟, 1680.32 …元叁角贰分) is a form the bank rules allow, and the Acceptance note states the choice. Right.
  • Rounding: once, half away from zero, on the decimal spelled. 1.005 壹元零壹分, 0.1 + 0.2 叁角, 0.995 壹元整, 99999999.995 壹亿元整, -0.005 负壹分, -0.004 零元整 (never 负零). Right.
  • Inputs: int literal (bigint), double, decimal text read; null reads ''; NaN, infinities, '', '¥100', '1,234.00', boolean, list, map throw; 10^16 and above throws, as number and as text. Matches the changeset, the docs and the skill row.

② Semver level

  • @objectstack/formula minor is right: Metadata-protocol: added (a new callable an author can write) takes at least minor on a package the diff moves. @objectstack/skills patch is right for a wording-only skill change. Check Changeset is green on this head.
  • Clause-②: yes (widening) is right and present, line-initial, in both the PR body and the changeset. Nothing narrows: no retired name, no changed value.

③ Boundary flags

  • open_questions in report 6923650437 is empty. Acceptance notes answered: the name rmbUpper is the card's own suggestion, accepted; the optional 零 is accepted (see ①); null reads '' is consistent with trim(null) and label(), accepted; the skill token budget is judged in ④; "no live REST read" is accepted, the pins run through celEngine.evaluate, the evaluator the read path calls.
  • api-backend.json is in scope, not a stopgap: it edits only api-backend.formula-stdlib-matrix, whose steps tell the runner to fail the row as stale when the registration count moves, and the claim (6922730614) lists the file. It does not touch approvals.approver-resolution-matrix, the row the dev reported red on main.
  • Check-runs on this head at the read: 26 success, 10 skipped, 29 in progress, none red. Lint · repo & tooling gates is success. The Test Core, Test UI and Type Check shards were not finished, so the all-green landing check is still owed by the seat.
  • SQL push-down: no query, id materialisation or join in the diff.
  • Author: objectstack-fleet[bot].

④ Design judgment

skills/objectstack-formula/SKILL.md (hits). The new Numbers row is true of the code: return type string, rounded to 分, the example value, '' for null. It serves the card's consumer (rmbUpper(record.total_amount) in a returnType: 'text' formula field), and the authoring pin shows that expression validates with no warning over a currency field and infers text. The deleted sentence told the reader to add helpers to the stdlib source; the same section says app authors have no src/ to read, and formulas.mdx keeps that advice for contributors, so no rule an app author needs is lost. No other file, eval or test cites the sentence.

rmb-upper.ts, stdlib.ts, validate.ts: agree with the docblock, the changeset and the docs sentence by sentence, with one exception (S1). The pins are not tautological: literal expected strings, read through the engine; the refusal pins assert the failure and its text, and the upper bound has a control one 分 below.

  • S1 (should-fix) — packages/formula/src/rmb-upper.ts, rmbUpper: one class of input is not bounded before the function does its work on it. Required change: refuse that class with the function's own error before the work, and pin it. Security-class; the mechanism and the fix shape are in the reviewer's private note to the seat, not here.
  • N1 (nit) — formulas.mdx and the changeset say a refused value "is a runtime error"; in a formula field that reads null (the page's own fault rule). Half a sentence would say so.
  • N2 (nit) — describe() calls a timestamp argument "a map" in the error text.
  • N3 (nit) — api-backend.json steps[2]: the rmbUpper known answers were inserted between the isoDate rows and their "and text refused (isoDate('2026-01-01') …)" clause, so that clause now reads as if it were about rmbUpper.

No must-fix. S1 is open: it is to be closed on a new head and the delta read before landing.

Implemented-by: claude/project-thread-dy398l
Reviewed-by: session_01FEkQ5mjfxPu5HKjUtuveBR

VERDICT: PASS

…ng it

rmbUpper now reads the amount's spelling itself: the magnitude comes from
the digits and the exponent, 10^16 yuan or more is refused with the
too-large error, an amount below 0.001 is zero, and only the digits from
the leading one down to the 0.001 place (the place half-away-from-zero
rounding to fen reads) are converted. Exponent spellings such as 1e3 and
1050050e-2 keep reading as before.

formulas.mdx: a formula field reads rmbUpper's runtime error as null.

Claude-Session: https://claude.ai/code/session_01FEkQ5nHvfaZE5NLUTcWkFZ
Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5nHvfaZE5NLUTcWkFZ

Final head for review: 9224c0c3 · 2026-11-16T18:01Z · supersedes 4fffca7e (6923627496)

One commit on top, 9224c0c3: rmbUpper refuses an out-of-range amount before converting it. The amount's spelling is judged first (its magnitude from the digits and the exponent): 10^16 yuan or more is the existing too-large error, an amount below 0.001 is 零元整, and only the digits down to the 0.001 place are converted. formulas.mdx also says a formula field reads the runtime error as null (the L1-b note on 6923728542).

  • New pins in stdlib-rmb-upper.test.ts: exponent spellings that read as before (1e3, 1050050e-2, 9.999999999999999e15, 5e-3, 4.99e-3), refused-as-too-large rows (1e16, 1e400, a 400-digit integer, a 400-digit exponent), below-0.001 rows (1e-400 and smaller, a 100,000-digit fraction), each answering in under a second, and digits below the 0.001 place leaving the rounding unchanged.
  • Ablations through scripts/ablation-replace.mjs, each restored to the HEAD blob 34025efb: the top bound raised to 10^1000 turns 4 tests red; the below-0.001 return deleted turns 1 test red.
  • @objectstack/formula test + typecheck under the verify lock: 68 files, 1841 tests passed, exit 0.
  • Derived gates at 9224c0c3: 107 derived, 107 run, 106 exit 0. The one red is check:platform-checklist on approvals.approver-resolution-matrix, the same main-red as before; this branch does not touch that item.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR

Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head 9224c0c · 2026-11-16T18:03Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5mww9UksbwbjvM4aYn

席位核对 · PR #34433 · L1-b · 2026-11-16T18:06Z

Head-sha: 9224c0c3e8b630c3c29431066fe5227ca4653535

L1 delta · REWORK(1 项,代码) · 定稿评论 6924699399 所钉 head;对照 L1 ACCEPT 6923728542(@ 4fffca7e)。只读 delta:4fffca7e..9224c0c3,1 个提交,3 个文件,+111/−27。

已核:spelledFen 先由拼写判断量级,再转换数字,所以计算量只跟文本长度有关。正则 DECIMAL_SPELLING 接受 String(1e21) 的 1e+21 写法。半舍入远离零到分时,只看 0.001 位,丢弃更低位不影响结果;有 pin(1.0049999… → 壹元整,1.005000… → 壹元零壹分)。小于 0.001 的金额写零元整,带符号的情形也是。formulas.mdx 采纳了上一轮的非阻塞建议,写明 formula 字段把这个错误读作 null。

R1 · 舍入后才达到 10^16 的金额不再被拒,会写成「亿亿」。 旧 head 在舍入之后判断 abs >= LIMIT_FEN(10^18 分)。新 head 只在舍入之前按首位数字的位次判断(place > TOP_PLACE)。拿 '9999999999999999.995' 逐步读代码:

  • 首位数字的 place = 15,不大于 TOP_PLACE,放行;
  • kept = '9999999999999999995',divideToPlaces(…, 2) 半舍入远离零,得 fen = 10^18;
  • whole = 10^16,yuan(10^16) 走两次 ≥ 1e8 分支,得 壹亿亿;
  • 返回 壹亿亿元整。

这正是 pin 标题「10^16 yuan and above is refused, not written as 亿亿」要排除的写法,而且 changeset 和 docs 都说这个量级是运行时错误。负数 '-9999999999999999.995' 同理,会写成 负壹亿亿元整。新增的 pin 没有覆盖这个边界:9999999999999999.99 和 9.999999999999999e15 都不进位。

请在 spelledFen 返回之前(或在 rmbUpper 里)补回舍入之后的上限判断(|fen| >= 10^18 ⇒ TOO_LARGE),并为 '9999999999999999.995' 与 '-9999999999999999.995' 各加一条拒收 pin;'9999999999999999.994' 作为 CONTROL,应写成玖仟…玖拾玖元玖角玖分。

门禁:本 head 未读;新 head 出来后一起核。落地条款不变:受管路径 skills/**,Clause-② yes,按席位的受管路线走;须同时具备本 L1 的 delta ACCEPT 和 review#2 对新 head 的 PASS。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 9224c0c3e8b630c3c29431066fe5227ca4653535
Local-runs: probe — this head's and the previous head's rmb-upper.ts (with home-amount-arithmetic.ts) were copied by git show into the scratch dir and called side by side from a standalone node script: the out-of-range class for promptness, and about 620,000 in-range inputs (the earlier case set plus generated text, numbers and bigints) for equality of result; no checkout, build, gate or repo test was run
Scope: delta only, 4fffca7e..9224c0c3 (one commit): packages/formula/src/rmb-upper.ts, packages/formula/src/stdlib-rmb-upper.test.ts, content/docs/data-modeling/formulas.mdx. Everything else carries from record 6923880566.
Security-touching: no

Delta round. The previous record (6923880566, PASS at 4fffca7e3ed5e8f6f79839bdc644be0ac3c1571a) left S1 open; announce 6924699399 names this head as its fix. Merge-base with origin/main is unchanged (9e6fee19); the PR's file list is the same nine files; home-amount-arithmetic.ts is still identical to main.

① Derived judgments

  • S1 is closed. rmbUpper now judges the spelling of its argument before converting it: the out-of-range class is refused (too large) or read as zero (below the rounding place) before the work, and the work is bounded by the length of the text. Evaluated at this head over the class and its variant spellings (sign, case, zero prefixes, very long digit runs with and without a point, malformed tails): every one answered promptly with the right result. Right.
  • Accept-set is unchanged: the same spellings are read and the same are refused as at 4fffca7e (surrounding whitespace read; _, a bare sign, a bare point, a dangling exponent refused). Right.
  • Values: the side-by-side run found one input class whose result changed — M1 below. Every other compared input, including all the earlier record's ① known answers, is identical. Truncating at the 0.001 place before rounding is sound for half-away-from-zero at 分 and showed no difference on either sign.
  • M1 (must-fix) — packages/formula/src/rmb-upper.ts, spelledFen: the upper bound is now judged on the leading digit of the unrounded spelling only, so text in [9999999999999999.995, 10^16) passes it, rounds to 10^16 yuan, and is printed as 壹亿亿元整 (负壹亿亿元整 when negative). At 4fffca7e these threw the too-large error. This is the form the file's own TOP_PLACE comment says is refused, it breaks yuan()'s "below 10^16" precondition, and it makes the docblock's "largest amount written is … 99 分" false. Text only; a JS number cannot carry it. Required change: refuse when the rounded 分 value reaches 10^18 as well (the check the previous head had after rounding), and pin '9999999999999999.995' as too large beside the existing '9999999999999999.99' control. No existing or new pin covers this row, which is why the suite is green.

② Semver level

  • Unchanged. The changeset and the declaration (Metadata-protocol: added, Clause-②: yes (widening)) are untouched by the delta and still describe what the diff publishes; Check Changeset is green on this head.

③ Boundary flags

  • Check-runs on this head: 58 success, 10 skipped, none red, none pending.
  • The announce reports one red derived gate, check:platform-checklist on approvals.approver-resolution-matrix; that is the main-red item the previous record already set aside, and the delta does not touch the checklist.
  • No new open_questions. SQL push-down: no query in the delta.
  • Author: objectstack-fleet[bot].

④ Design judgment

rmb-upper.ts. The new docblock paragraph and spelledFen's comment agree with the code except where M1 says otherwise. The bound sits inside rmbUpper, and divideToPlaces is called only on a value of at most 19 digits.

stdlib-rmb-upper.test.ts. The new pins pin the bound and are not tautological: literal expected strings through celEngine.evaluate; the refusal rows assert failure, its text and a time ceiling; they include rows of the out-of-range class that the previous head could not answer inside the ceiling, in both directions, plus long-digit rows and a rounding-invariance pair. The announce's two ablations are consistent with the code read. Missing: the M1 row.

formulas.mdx. The added clause ("a formula field reads that error as null") matches the page's own fault rule and the engine. N1 is closed for the docs; the changeset keeps the shorter wording, which is fine.

No should-fix.

Carry-over from 6923880566: S1 closed; N1 closed; N2 (nit, describe() calls a timestamp "a map") and N3 (nit, api-backend.json steps[2] clause order) unchanged and still open as nits. All other ① ② ③ ④ judgments of that record stand.

Implemented-by: claude/project-thread-dy398l
Reviewed-by: session_01FEkQ5mjfxPu5HKjUtuveBR

VERDICT: FAIL

9999999999999999.995 rounds to 10^16 yuan, which the 万/亿 scheme would
write as 亿亿; the limit is checked again after rounding to 分. Pins the
.995 rows (both signs) as refused and .994 as the written control.

Claude-Session: https://claude.ai/code/session_01FEkQ5nHvfaZE5NLUTcWkFZ
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l and removed size/m labels Nov 16, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5nHvfaZE5NLUTcWkFZ

Final head for review: 92e409e8 · 2026-11-16T18:36Z · supersedes 9224c0c3 (6924699399)

One commit on top, 92e409e8: rmbUpper refuses an amount that rounds up to 10^16 yuan. The limit is checked again on the rounded 分 value (|分| >= 10^18 is the too-large error), as 4fffca7e did, so text in [9999999999999999.995, 10^16) is refused instead of being written as 亿亿. This answers L1-b's REWORK R1 (6924794608) and review#2's M1 (6924807610).

  • New pins in stdlib-rmb-upper.test.ts: '9999999999999999.995', '-9999999999999999.995' and '9.9999999999999999995e15' refused as too large; CONTROL '9999999999999999.994' and '-9999999999999999.994' written to 99 分 (beside the existing '9999999999999999.99' control).
  • Ablation through scripts/ablation-replace.mjs: the after-rounding check deleted (anchor 1 to 0, blob 71aa2987 to 45437093) turns exactly those 3 refusal rows red (3 failed, 82 passed); restored, blob 71aa2987 equals HEAD and git diff HEAD is empty.
  • @objectstack/formula test + typecheck under the verify lock: 68 files, 1845 tests passed, exit 0.
  • Derived gates at 92e409e8: 107 derived, 107 run, 106 exit 0. The one red is check:platform-checklist on approvals.approver-resolution-matrix, the same main-red as before; this branch does not touch that item.
  • CI on 92e409e8: check suites completed, none failed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5mww9UksbwbjvM4aYn

席位核对 · PR #34433 · L1-b · delta · 2026-11-16T18:38Z

Head-sha: 92e409e84a9ea966cc5bfc593c1b36f9babf86bc(自 9224c0c3 起 1 个提交,2 个文件 +28/−2)

结论:delta ACCEPT。 R1 已关闭。

  • 代码: spelledFen 在 divideToPlaces 四舍五入之后补回了检查:|fen| >= LIMIT_FEN(10n ** 18n 分 = 10^16 元)时抛出 TOO_LARGE,正负号都覆盖。四舍五入之前那一道 place > TOP_PLACE 检查保留不动。docblock 也写明了 "again after rounding"。
  • 钉子: '9999999999999999.995'、'-9999999999999999.995'、'9.9999999999999999995e15' 三条断言 ok: false,且消息含 too large。CONTROL 是 ±'9999999999999999.994',完整写出 …玖元玖角玖分(负数带"负")。这正是 REWORK 6924794608 要求的那一组。
  • 消融: 删掉这道检查后,恰好这 3 条变红(3 failed / 82 passed);还原后 blob 71aa2987 与 HEAD 一致,git diff HEAD 为空。读数在 announce 6925512006。formula 1845/1845 在锁内跑,exit 0。
  • CI(本 head): 58 success、10 skipped,无失败,没有在跑的检查。merge-base 仍为 9e6fee19。

落地条款:还须 review#2 对本 head 的 delta 复读 PASS(已敲 6925534180),然后按席位的落地路线走。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR

Contract-review-claim: session_01FEkQ5mjfxPu5HKjUtuveBR · head 92e409e · 2026-11-16T18:38Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-project-manager · session_01FEkQ5mjfxPu5HKjUtuveBR

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 92e409e84a9ea966cc5bfc593c1b36f9babf86bc
Local-runs: probe — this head's and the previous head's rmb-upper.ts (with home-amount-arithmetic.ts) were copied by git show into the scratch dir and called side by side from a standalone node script: the M1 rows and their neighbours on text, number and bigint, and the same 620,114-input comparison the previous round ran; no checkout, build, gate or repo test was run
Scope: delta only, 9224c0c3..92e409e8 (one commit): packages/formula/src/rmb-upper.ts, packages/formula/src/stdlib-rmb-upper.test.ts. Everything else carries from record 6924807610.
Security-touching: no

Delta round. The previous record (6924807610, FAIL at 9224c0c3e8b630c3c29431066fe5227ca4653535) left M1 open; announce 6925512006 names this head as its fix. The delta is one commit with one parent, no merge; merge-base with origin/main is unchanged (9e6fee19); the PR's file list is the same nine files; home-amount-arithmetic.ts is still identical to main.

① Derived judgments

  • M1 is closed. spelledFen now refuses, with the same too-large error, when the rounded 分 value reaches 10^18 in either sign. Evaluated at this head: '9999999999999999.995', '9999999999999999.9999', their negatives, the signed and whitespace-wrapped forms and the other spellings of the same amounts are all refused as too large; '9999999999999999.994', '9999999999999999.9949999' and '9999999999999999.99' (and the negative) are still written, to 99 分. Right.
  • The side-by-side run against 9224c0c3 differs on exactly one class — M1's, which now refuses. Every other compared input is identical, so the accept-set and every other value are unchanged from the previous record's ①. Right.
  • The out-of-range class the previous round closed (S1) still answers promptly and with the same results; the new check runs after the bounded conversion and adds no work. Right.
  • Number and bigint arguments cannot reach the new check: a finite number below 10^16 near the top is an integer (the largest is 9999999999999998), a bigint has no fraction, and neither can round up; 10^16 itself was and is refused by the first bound. So yuan()'s "below 10^16" precondition and the docblock's "largest amount written is … 99 分" hold again on every path.

② Semver level

  • Unchanged. The changeset and the declaration (Metadata-protocol: added, Clause-②: yes (widening)) are untouched by the delta and still describe what the diff publishes: the refused row was never written by any released version.

③ Boundary flags

  • Check-runs on this head: 58 success, 10 skipped, none red, none pending.
  • The announce reports one red derived gate, check:platform-checklist on approvals.approver-resolution-matrix; that is the main-red item already set aside in the earlier records, and the delta does not touch the checklist.
  • No new open_questions. SQL push-down: no query in the delta.
  • Author: objectstack-fleet[bot].

④ Design judgment

rmb-upper.ts. The check is the one the required change named, placed after rounding inside spelledFen, so rmbUpper never sees a 分 value of 10^18 or more. LIMIT_FEN's comment, the inline comment and the docblock's added clause ("and again after rounding") each agree with the code. The TOP_PLACE comment is true again.

stdlib-rmb-upper.test.ts. The new pins are not tautological: three refusal rows through celEngine.evaluate ('9999999999999999.995', its negative, and an exponent spelling of the same class) assert failure and the too-large error text; a CONTROL asserts the literal 99 分 string for '9999999999999999.994' and its negative. Read against the code, deleting the new check turns exactly the three refusal rows red and leaves the control green, which is what the announce's ablation reports.

No must-fix, no should-fix.

Carry-over: M1 closed; S1 closed; N1 closed; N2 (nit, describe() calls a timestamp "a map") and N3 (nit, api-backend.json steps[2] clause order) unchanged and still open as nits. All other ① ② ③ ④ judgments of records 6923880566 and 6924807610 stand.

Implemented-by: claude/project-thread-dy398l
Reviewed-by: session_01FEkQ5mjfxPu5HKjUtuveBR

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-project-manager · session_01FEkQ5pmEYLVFDcQ1Z1CS8H

维护者速读

Head-sha: 92e409e84a9ea966cc5bfc593c1b36f9babf86bc

  • 改了什么:公式标准库新增 rmbUpper(金额),把金额写成人民币大写,例如 245000 → 贰拾肆万伍仟元整、10500.5 → 壹万零伍佰元伍角。报价单、合同、发票的打印页用一个公式字段就能印出「大写金额」。
  • 为什么改:卡 formula: add a Chinese capital-amount function (金额大写, e.g. 壹万零伍佰元整) for printed quotes, contracts and invoices #34332,由你升为 p1(记录 6918041400)。中文商务单据都要在数字下面再印一行大写金额。应用自己用 CEL 写,既长又容易在「零」、万/亿和角分规则上出错。
  • 风险与回滚:只新增一个函数,已有公式的取值都不变。金额按精确小数四舍五入到分;空值印空;非数字或超出范围的金额报运行时错误,不会印出错的金额。回滚即 revert。
  • 先看:① packages/formula/src/rmb-upper.ts(零与万/亿规则、取整、范围判断);② packages/formula/src/stdlib-rmb-upper.test.ts(期望值表);③ skills/objectstack-formula/SKILL.md(新增一行;为了 token 预算,删掉一句写给平台开发者的旧建议)。
  • 两分钟验证:pnpm --filter @objectstack/formula exec vitest run src/stdlib-rmb-upper.test.ts,预期全部通过,表中可见 245000 → 贰拾肆万伍仟元整。
  • 需要你做的:对本 head 点 Approve。它碰了受管面 skills/**,而且 changeset 发的是 @objectstack/formula minor,超出了低风险技能通道只允许的 skills patch,所以属 Tier H。共 506 行,没有超过 3,000 行。批准后由席位落地。

席位意见:建议批准。这是新增函数的放宽(Clause-②: yes (widening)),已有表达式的结果不变。契约审核两轮修复后在本 head 上 PASS,没有残留问题。席位没有在本地亲跑验证命令,本 head 的结论以 CI 读数为准。

席位核对

  1. 形态:9 个文件,+485/−21。check-governed-merges --pr 34433 的读数:GOVERNED(skills/objectstack-formula/SKILL.md)。低风险技能通道判为 Tier H,因为 changeset 发 formula minor。Fixes #34332。
  2. 前提:卡由维护者升级为 p1(6918041400)。函数行为由期望值表钉住,消融有效(卡线程的 dev 报告 6923650437 和其后两轮修复)。
  3. 门禁 check-runs:本 head 上 58 条 success、10 条 skipped,没有失败。
  4. 审核:L1-b delta ACCEPT 6925557242;L2 CONTRACT_REVIEW_TIER(review#2)PASS 6923880566,delta FAIL 6924807610,再 delta PASS 6925613415(M1、S1 都已关闭,没有 must-fix 或 should-fix),都在本 head。
  5. 范围外去向:审核中发现的一个已存在于 main 的同类问题,已经按安全渠道私下处理,不随本 PR。
  6. 落地条款:等 GOVERNED_APPROVERS 在本 head 上 APPROVED(或维护者直接合并)。落地前席位重读 head 和 check-runs;head 若再移动,就撤掉挂签回到等待。之后清 pm:awaiting-merge,标 ready,开 auto-merge。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 16, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 16, 2026 21:07
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 16, 2026
Merged via the queue into main with commit 12b69e1 Nov 16, 2026
74 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-dy398l branch November 16, 2026 21:40
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

formula: add a Chinese capital-amount function (金额大写, e.g. 壹万零伍佰元整) for printed quotes, contracts and invoices

2 participants